home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / wchar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-07-30  |  1.6 KB  |  108 lines

  1. /* Copyright (C) 2001 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6. #ifndef __WCHAR_H
  7. #define __WCHAR_H 1
  8.  
  9. #if __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  14. #ifndef _CRTAPI1
  15. #define _CRTAPI1 __cdecl
  16. #endif
  17.  
  18. /* Define _CRTAPI2 (for compatibility with the NT SDK) */
  19. #ifndef _CRTAPI2
  20. #define _CRTAPI2 __cdecl
  21. #endif
  22.  
  23. /* Define CRTIMP */
  24. #ifndef _CRTIMP
  25. #if defined(_WIN32) && defined(_DLL)
  26. #define _CRTIMP  __declspec(dllimport)
  27. #else
  28. #define _CRTIMP
  29. #endif
  30. #endif
  31.  
  32. typedef unsigned int size_t;
  33. typedef long time_t;
  34. #if !defined(_WCHAR_T_DEFINED)
  35. typedef unsigned short wchar_t;
  36. #define _WCHAR_T_DEFINED 1
  37. #endif
  38. typedef wchar_t wint_t;
  39. typedef wchar_t wctype_t;
  40. //typedef int mbstate_t;
  41. struct tm;
  42.  
  43. #define WCHAR_MIN    (wchar_t)0
  44. #define WCHAR_MAX    (wchar_t)0xFFFF
  45.  
  46. #define WEOF (wint_t) (0xFFFF)
  47.  
  48. #ifndef NULL
  49. #ifdef __cplusplus
  50. #define NULL    0
  51. #else
  52. #define NULL    ((void *)0)
  53. #endif
  54. #endif
  55.  
  56. #if __cplusplus
  57. }
  58. #endif
  59.  
  60. #ifndef __CTYPE_H
  61. #include <ctype.h>
  62. #endif
  63.  
  64. #ifndef __DIRECT_H
  65. #include <direct.h>
  66. #endif
  67.  
  68. #ifndef __IO_H
  69. #include <io.h>
  70. #endif
  71.  
  72. #ifndef __PROCESS_H
  73. #include <process.h>
  74. #endif
  75.  
  76. #ifndef __SYS_STAT_H
  77. #include <sys\stat.h>
  78. #endif
  79.  
  80. #ifndef __STDIO_H
  81. #include <stdio.h>
  82. #endif
  83.  
  84. #ifndef __STDLIB_H
  85. #include <stdlib.h>
  86. #endif
  87.  
  88. #ifndef __STRING_H
  89. #include <string.h>
  90. #endif
  91.  
  92. #ifndef __TIME_H
  93. #include <time.h>
  94. #endif
  95.  
  96. #if __cplusplus
  97. extern "C" {
  98. #endif
  99.  
  100. int    __CLIB fwide(FILE *stream, int mode);
  101.  
  102. #if __cplusplus
  103. }
  104. #endif
  105.  
  106.  
  107. #endif
  108.